EXTRADEFS = -DINCLUDEDIR="\"$(includedir)\""
PROGRAMS = wrc$(EXEEXT)
MANPAGES = wrc.man.in
ALL_LIBS = @LIBGETTEXTPO@ $(LIBWPP) $(LIBWINE_STATIC) $(LIBPORT)

C_SRCS = \
	dumpres.c \
	genres.c \
	newstruc.c \
	po.c \
	readres.c \
	translation.c \
	utils.c \
	wrc.c \
	writeres.c

LEX_SRCS   = parser.l
BISON_SRCS = parser.y

@MAKE_RULES@

wrc$(EXEEXT): $(OBJS) $(LIBWPP)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS)

install install-dev:: wrc$(EXEEXT) install-man-pages
	$(INSTALL_PROGRAM) wrc$(EXEEXT) $(DESTDIR)$(bindir)/wrc$(EXEEXT)

uninstall::
	$(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT)
